package com.lzy.wzy.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OutOfHoursStatisticsBean {

        @NotBlank
        private String projectNumber;

        @NotBlank
        private String projectName;

        @NotNull
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
        private LocalDate projectDate;

        @NotNull
        private int numberOfOperations;

        @NotNull
        private float workingHours;
        @NotNull
        private float overTime;
        @NotNull
        private float totalWorkingTime;

        @NotBlank
        private String remarks;

        private String name;

        private int year;

        private int month;
}
